package com.yadang.stream;

import com.yadang.service.entity.User;
import org.mockito.MockedStatic;
import org.mockito.Mockito;
import org.mockito.stubbing.OngoingStubbing;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: 亚当
 * @date: 2023年02月19日 20:14
 * @package: com.yadang.stream
 * @Description: TODO
 */
public class ListStream {
    public static void main(String[] args) {
        List<Student> arrayList = new ArrayList<>();
        Student student1 = new Student("17309","王建辉","男");
        Student student2 = new Student("17310","大乔","女");
        Student student3 = new Student("17311","孙尚香","女");
        Student student4 = new Student("17312","关羽","男");
        arrayList.add(student1);
        arrayList.add(student2);
        arrayList.add(student3);
        arrayList.add(student4);

        arrayList.stream().forEach(student -> System.out.println(student));

    }
}
